package org.dromara.Nyt7InsuranceCategory.domain.bo;

import org.dromara.Nyt7InsuranceCategory.domain.Nyt7InsuranceCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 产品分类业务对象 nyt_7_insurance_category
 *
 * @author Lion Li
 * @date 2024-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Nyt7InsuranceCategory.class, reverseConvertGenerate = false)
public class Nyt7InsuranceCategoryBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long categoryId;

    /**
     * 产品分类
     */
    @NotBlank(message = "产品分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 上一级产品
     */
    @NotNull(message = "上一级产品不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;


}
